package com.shuziren.question.entity.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SelectInterviewQuestionDTO {
        // 题目标题
        private String title;
        // 题目难度
        @Min(value = 0, message = "难度值0~3")
        @Max(value = 3, message = "难度值1~3")
        private Integer difficulty;
        // 题目分类id
        private Integer categoryid;
        // 题目状态
        private Integer status;
        // 每页显示条数
        @Min(value = 1, message = "每页显示条数不能小于1")
        private Integer pageSize;
        // 当前页码
        @Min(value = 1, message = "当前页码不能小于1")
        private Integer pageNum;
}
